<script type="text/javascript">
	$(document).ready(function(){
		$('#frm_emplog').submit(function(){
			//alert();
			$.ajax({
				type: "POST",
				url: "<?php echo base_url();?>index.php/emp_register/do_login",
				data: {
					user_name: $('#username').val(),
					password: $('#password').val(),
					
				},
				success: function(data)
				{
					if(data=="Yes"){
						//alert("Logged In Successfull!");
						window.location.href='emp_account';
					}else if(data=="No"){
						alert("Login Fail!");
					}
				}
			
			});
			
		});
	
	
	});

</script>

<div id="ks_container">
	<div id="ks_sub_container_main">
		<div id="ks_sub_container_main_item_1"></div>
		<div id="ks_sub_container_main_item_2"><a href=""><img src="<?php echo base_url('assets/img/logo.png');?>"/></a></div>
		<div id="ks_sub_container_main_item_3"></a></div>
	</div>
	
	<div class="login">
		<form id="frm_emplog" action="<?php echo base_url();?>index.php/emp_register/emp_account" method="POST" class="acc_log">
				<div class="login_title">Job Employer's Login Page</div>
				<table style="margin: 0 auto; border:0px;" cellpadding="5" cellspacing="5">
					<tbody><tr>
						<td class="user_lebel">Username</td>
						<td class="input"><input type="text" id="username" name="username" style="border: 1px solid #CCC; border-bottom: 1px solid #AAA; border-radius: 2px; height: 20px; line-height: 30px;padding: 5px;  width: 244px; "></td>
					</tr>
					<tr>
						<td class="user_lebel">Password</td>
						<td><input type="password" id="password" name="password" style="border: 1px solid #CCC; border-bottom: 1px solid #AAA; border-radius: 2px; height: 20px; line-height: 30px;padding: 5px;  width: 244px; "></td>
					</tr>
					<tr>
						<td colspan="2" align="center">
							<div class="lgbtn"><input onclick="window.location.href='/index.php/page/home'" class="buttons" type="button" value="Home page" name="Button" title="Go Home Page"></div>
							<div class="lgbtn"><input class="buttons" type="submit" value="Login" name="Submit" title="Login"></div>	
						</td>
					</tr>
					<tr>
						<td colspan="2" align="center"> 
							<div class="lgbtn"><a href="<?php echo base_url('index.php/emp_register_controller');?>"><div class="box_sign all_font">Sign up<br>បង្កើតគណនីថ្មី</div></a> <br></div>	
							<div class="lgbtn">
								<a href="/index.php/candidate/forgot">
								<div class="box all_font"> Forgot your password ? <br>ភ្លេចលេខសំងាត់ ?</div>
		              			</a>
		              		</div>
						</td>
					</tr>
				</tbody>
			</table>
		<div style="color:#C00000;text-align:center;font-style:italic"></div>
	</form>
</div>

<div style="text-align:center;width:100%;float:left;position:relative;display:block;">If you have a problem with login please contact this <br>Tel : 855(0) 70 678 938 or Email : <a href="mailto:admin@hrcambodia.com">admin@hrcambodia.com</a></div>
	
	
</div>